<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div th:replace="common/top"></div>

<div id="BackLink">
  <a href="/catalog/view">Return to Main Menu</a>
</div>

<div id="Catalog">

<!--  <h2 th:text="|please fill in new information of item:${item.itemid}|">please fill in new information of the item:</h2>-->

  <!--    todo:提交到后台-->
  <form action="/catalogM/modifyItem">
    <table>
      <tr>
        <th><label> new itemId:<input type="text" name="itemId" th:value="${item.itemId}"></label></th>
      </tr>
      <tr>
        <th><select name="productId">
          <option th:each="product:${productList}" th:text="${product.productId}" th:value="${product.productId}" ></option>
        </select></th>
      </tr>
      <tr>
        <th><label>listprice:<input type="text" name="listPrice" th:value="${item.listPrice}"></label></th>
      </tr>
      <tr>
        <th><label>unitcost:<input type="text" name="unitCost" th:value="${item.unitCost}"></label></th>
      </tr>
      <tr>
        <th><label>supplierId:<input type="text" name="supplierId" th:value="${item.supplierId}"></label></th>
      </tr>
      <tr>
        <th><label>attr1:<input type="text" name="attribute1" th:value="${item.attribute1}"></label></th>
      </tr>
      <tr>
        <th><label>attr2:<input type="text" name="attribute2" th:value="${item.attribute2}"></label></th>
      </tr>
      <tr>
        <th><label>attr3:<input type="text" name="attribute3" th:value="${item.attribute3}"></label></th>
      </tr>
      <tr>
        <th><label>attr4:<input type="text" name="attribute4" th:value="${item.attribute4}"></label></th>
      </tr>
      <tr>
        <th><label>attr5:<input type="text" name="attribute5" th:value="${item.attribute5}"></label></th>
      </tr>
      <tr>
        <th><label>是否上架:<input type="radio" name="isInStore" th:value="1">是<input type="radio" name="isInStore" th:value="0">否</label></th>
      </tr>
      <tr>
        <th><button type="submit">确认修改</button></th>
      </tr>
    </table>
  </form>
</div>


<div th:replace="common/bottom"></div>


</body>
</html>